package com.bdqn.hospital.service.impl;

import com.bdqn.hospital.mapper.DepartmentMapper;
import com.bdqn.hospital.pojo.Department;
import com.bdqn.hospital.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version : 1.0
 * @Author :guogd
 * @createTime: 2023/03/01 14:56
 * @Description: com.bdqn.hospital.service.impl
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {
    //注入科室Mapper
    @Autowired
    private DepartmentMapper departmentMapper;

    /**
     * 获取所有科室信息
     * @return
     */
    @Override
    public List<Department> getDepartmentAll() {
        return departmentMapper.getDepartmentAll();
    }

    @Override
    public List<Department> findAll() {
        return departmentMapper.findAll();
    }

    @Override
    public Department getById(Integer id) {
        return departmentMapper.getById(id);
    }
}
